package com.slmxz.tms.document.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.slmxz.tms.document.model.entity.Location;
import com.slmxz.tms.document.model.vo.LocationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 地址档案Mapper接口
 * @author sunyao
 * @Date 2024-11-15
 */
public interface LocationMapper extends BaseMapper<Location> {

    /**
     * 获取地址档案分页数据
     * @param page 分页对象
     * @return
     */
    List<LocationVO> selectLocationPage(IPage<LocationVO> page, @Param("location")LocationVO location);

    /**
     * 地址档案的下拉框
     * @param location
     * @return
     */
    List<Location> selectOption(@Param("location") LocationVO location);

}
